package com.zhongyouyun.admin.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @Author: shenyi
 * @Date: 2022-04-29
 * @Description:
 */

@ApiModel(value = "FileModel对象", description = "文件")
@Data
@TableName("z_file")
@Accessors(chain = true)
public class FileModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "文件名称")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "原始名称")
    @TableField("original_name")
    private String originalName;


    @ApiModelProperty(value = "文件MD5")
    @TableField("file_md5")
    private String fileMd5;

    @ApiModelProperty(value = "扩展名")
    @TableField("extension_name")
    private String extensionName;

    @ApiModelProperty(value = "相对地址")
    @TableField("url")
    private String url;

    @ApiModelProperty(value = "备注")
    @TableField("ramark")
    private String ramark;


}